/* 版心 */
.container {
  width: 1190px;
  margin: 0 auto;
}

a {
  color: #333;
  &:hover {
    color: #dd302d;
  }
}

.topbar {
  height: 30px;
  background-color: #ececec;
  font-size: 0;
  a {
    font-size: 12px;
    color: #666666;
    &:hover {
      color: #dd302d;
    }
  }
  .left {
    float: left;
    height: 30px;
    line-height: 30px;
    span {
      font-size: 12px;
      font-weight: 400;
      margin-right: 28px;
    }
    a:first-of-type {
      padding-right: 10px;
      margin-right: 10px;
      border-right: 1px solid #666;
    }
  }
  .right {
    float: right;
    height: 30px;
    line-height: 30px;
    a:not(:last-child) {
      margin-right: 10px;
      padding-right: 10px;
      border-right: 1px solid #666;
    }
  }
}

.header {
  height: 120px;
  .left {
    float: left;
  }
  .right {
    float: right;
    form {
      margin-top: 42px;
      font-size: 0;
    }
    input {
      width: 510px;
      height: 36px;
      border: 1px solid #dd302d;
    }
    button {
      width: 80px;
      height: 36px;
      background: url('../images/serch_icon.png') no-repeat center #dd302d;
      vertical-align: top;
      cursor: pointer;
    }
  }
}

.nav {
  border-bottom: 1px solid #dd302d;
  font-size: 0;
  a {
    font-size: 16px;
    color: #333333;
    font-weight: 700;
    padding: 0 10px;
    &:hover {
      color: #dd302d;
    }
  }

  .left {
    float: left;
    width: 190px;
    height: 48px;
    background: #dd302d;
    color: #fff;
    text-align: center;
    line-height: 48px;
    font-size: 16px;
  }

  .right {
    float: left;
    height: 48px;
    line-height: 48px;
  }
}

.main {
  .banner {
    margin-top: 10px;
    & > div {
      float: left;
      height: 458px;
    }
    .sidebar {
      position: relative;
      width: 190px;
      background: #f4f4f4;
      padding: 9px 16px 0;
      &:hover .secondary-menu {
        display: block;
      }
      a {
        display: block;
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 8px;
      }
      .secondary-menu {
        display: none;
        width: 700px;
        height: 458px;
        position: absolute;
        background-color: #fff;
        top: 0px;
        left: 190px;
        padding: 10px 0;
        font-size: 14px;
        dl {
          height: 36px;
          padding: 8px 0;
        }
        dt,
        dd {
          float: left;
          height: 20px;
        }
        dt {
          width: 100px;
          padding-left: 20px;
        }
        dd {
          border-left: 1px solid #999;
          padding: 0 10px;
          height: 20px;
          color: #666;
          a {
            color: #666;
            &:hover {
              color: #dd302d;
            }
          }
        }
      }
    }
    .carousel {
      width: 690px;
      margin: 0 10px;
      background-image: url('../images/banner主图.png');
    }
    .other {
      .news {
        width: 290px;
        height: 158px;
        border: 1px solid #d9d9d9;
        padding: 0 14px;
        dt {
          height: 40px;
          line-height: 40px;
          font-size: 14px;
          color: #000;
          border-bottom: 1px solid #d9d9d9;
          margin-bottom: 8px;
          .more {
            float: right;
            font-size: 12px;
            color: #999;
          }
        }
        dd {
          font-size: 12px;
          color: #666;
          margin-bottom: 10px;
        }
      }
      .sprite {
        margin-top: 10px;
        width: 290px;
        height: 290px;
        padding: 16px;
        & > a {
          float: left;
          width: 48px;
          height: 70px;
          text-align: center;
          font-size: 14px;
          margin-bottom: 16px;
          &:not(:nth-child(4n)) {
            margin-right: 22px;
          }
        }
      }
    }
  }
  .seckill {
    margin-top: 10px;
    font-size: 0;
    img {
      cursor: pointer;
    }
    img:first-child {
      width: 190px;
      height: 190px;
    }
    img:not(:first-child) {
      width: 239px;
      height: 190px;
      margin-left: 10px;
    }
  }
  .floor {
    .header {
      height: 30px;
      border-bottom: 2px solid #dd302d;
      margin-top: 48px;
      h3 {
        float: left;
        font-size: 20px;
        color: #000;
      }
      nav {
        float: right;
        a {
          padding: 0 10px;
          &:not(:last-child) {
            border-right: 1px solid #666;
          }
        }
      }
    }
    .content {
      background-color: red;
      & > div {
        float: left;
        height: 432px;
        img {
          cursor: pointer;
        }
      }
      .d1 {
        width: 230px;
        background-color: #f4f4f4;
        padding: 20px 0 0 20px;
        li {
          float: left;
          width: 90px;
          text-align: center;
          margin-right: 10px;
          padding: 3.5px 0;
          border-bottom: 1px solid #d9d9d9;
          &:nth-child(-n + 4) {
            margin-bottom: 14.4px;
          }
          a {
            color: #666;
            &:hover {
              color: #dd302d;
            }
          }
        }
        img {
          margin-top: 30px;
        }
      }
      .d2 {
        width: 340px;
      }
      .d3,
      .d5 {
        width: 206px;
      }
      .d3,
      .d5 {
        img {
          height: 216px;
        }
        img:first-child {
          border-bottom: 1px solid #e2e2e2;
        }
      }
      .d4 {
        width: 208px;
        z-index: 1;
        overflow: hidden;
        img {
          width: 208px;
          height: 432px;
        }
        border-left: 1px solid #e2e2e2;
        border-right: 1px solid #e2e2e2;
        /* border-bottom: 1px solid #fff; */
      }
    }
  }
}

.footer {
  height: 440px;
  background: #483e3e;
  margin-top: 48px;
  padding-top: 48px;
  .top {
    padding-bottom: 22px;
    border-bottom: 1px solid #584d4d;
    ul {
      float: left;
      width: 190px;
      margin-right: 10px;
      font-size: 14px;
      &:last-of-type {
        margin-right: 0;
      }
      li {
        a {
          color: #fff;
          &:hover {
            color: #dd302d;
          }
        }
      }
    }
  }
  .bottom {
    margin-top: 47px;
    text-align: center;
    a {
      font-size: 12px;
      padding: 0 26px;
      color: #fff;
      &:hover {
        color: #dd302d;
      }
      &:not(:last-child) {
        border-right: 1px solid #fff;
      }
    }
    p {
      margin-top: 10px;
      font-size: 12px;
      color: #fff;
    }
  }
}
